#include"Threadpool.hpp"
#include"Task.hpp"
#include<memory>


using namespace ThreadPoolMudule;

int main()
{
	ENABLE_CONSOLE_LOG();

	ThreadPool<task_t>::getInstance()->Start();

	int cnt = 10;
	while(cnt--)
	{
		ThreadPool<task_t>::getInstance()->Equeue(Push);
		sleep(1);
	}

	ThreadPool<task_t>::getInstance()->Stop();
	ThreadPool<task_t>::getInstance()->Wait();

	return 0;
}